package com.lee.service.impl;

import com.lee.entity.SysMember;
import com.lee.service.SysMemberService;
import com.lee.service.SysMemberServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zfl_a
 * @date 2021/4/4
 * @project springboot_trans_member
 */
@RestController
public class SysMemberController implements SysMemberServiceClient {

    @Autowired
    private SysMemberService sysMemberService ;

    @Override
    public void saveMember() {

        SysMember saveMember = new SysMember();
        saveMember.setMemberName("AA");
        saveMember.setIntegral(10.00);

        sysMemberService.save(saveMember);

    }
}
